package com.jishulianmeng.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author monologu
 */

public class Role implements java.io.Serializable {

	// Fields

	private long roleId;
	private String roleName;
	private String roleInfo;
	private short roleStatus;
	private String roleRemark;
	private Set users = new HashSet(0);
	private Set MRoleAuthorities = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(String roleName) {
		this.roleName = roleName;
	}

	/** full constructor */
	public Role(String roleName, String roleInfo, short roleStatus,
			String roleRemark, Set users, Set MRoleAuthorities) {
		this.roleName = roleName;
		this.roleInfo = roleInfo;
		this.roleStatus = roleStatus;
		this.roleRemark = roleRemark;
		this.users = users;
		this.MRoleAuthorities = MRoleAuthorities;
	}

	// Property accessors

	public long getRoleId() {
		return this.roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleInfo() {
		return this.roleInfo;
	}

	public void setRoleInfo(String roleInfo) {
		this.roleInfo = roleInfo;
	}

	public short getRoleStatus() {
		return this.roleStatus;
	}

	public void setRoleStatus(short roleStatus) {
		this.roleStatus = roleStatus;
	}

	public String getRoleRemark() {
		return this.roleRemark;
	}

	public void setRoleRemark(String roleRemark) {
		this.roleRemark = roleRemark;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public Set getMRoleAuthorities() {
		return this.MRoleAuthorities;
	}

	public void setMRoleAuthorities(Set MRoleAuthorities) {
		this.MRoleAuthorities = MRoleAuthorities;
	}

}